home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 1.iso / toolbox / src / exampleCode / opengl / GLUT / lib / fglut / glut_fullscrn.c < prev    next >
Encoding:
C/C++ Source or Header  |  1996-11-11  |  921 b   |  32 lines

  1.  
  2. /* Copyright (c) Mark J. Kilgard, 1995. */
  3.  
  4. /* This program is freely distributable without licensing fees 
  5.    and is provided without guarantee or warrantee expressed or 
  6.    implied. This program is -not- in the public domain. */
  7.  
  8. #include <X11/Xlib.h>
  9.  
  10. #include "glutint.h"
  11.  
  12. /* CENTRY */
  13. void
  14. glutFullScreen(void)
  15. {
  16.   if (__glutMotifHints == None) {
  17.     __glutMotifHints = XInternAtom(__glutDisplay, "_MOTIF_WM_HINTS", 0);
  18.     if (__glutMotifHints == None) {
  19.       __glutWarning("Could not intern X atom for WM_COLORMAP_WINDOWS.");
  20.     }
  21.   }
  22.   __glutCurrentWindow->desiredX = 0;
  23.   __glutCurrentWindow->desiredY = 0;
  24.   __glutCurrentWindow->desiredWidth = __glutScreenWidth;
  25.   __glutCurrentWindow->desiredHeight = __glutScreenHeight;
  26.   __glutCurrentWindow->desiredConfMask |= CWX | CWY | CWWidth | CWHeight;
  27.   __glutPutOnWorkList(__glutCurrentWindow,
  28.     GLUT_CONFIGURE_WORK | GLUT_FULL_SCREEN_WORK);
  29. }
  30.  
  31. /* ENDCENTRY */
  32.